package com.wgworkshop.pems.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 课时管理页面使用的适应页面显示的实体类。
 * Created by wlc on 2017/8/8.
 */
public class ClassHourViewRecord {
    private Long id;
    private String code;
    private String name;
    private Integer totalClassHour;
    private Date startDate;
    private Integer classNum;
    private BigDecimal totalCost;
    private Integer usedClassHour;

    public ClassHourViewRecord(Long id, String code, String name, Integer totalClassHour, Date startDate, Integer classNum, BigDecimal totalCost, Integer usedClassHour) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.totalClassHour = totalClassHour;
        this.startDate = startDate;
        this.classNum = classNum;
        this.totalCost = totalCost;
        this.usedClassHour = usedClassHour;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTotalClassHour() {
        return totalClassHour;
    }

    public void setTotalClassHour(Integer totalClassHour) {
        this.totalClassHour = totalClassHour;
    }

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Integer getClassNum() {
        return classNum;
    }

    public void setClassNum(Integer classNum) {
        this.classNum = classNum;
    }

    public BigDecimal getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(BigDecimal totalCost) {
        this.totalCost = totalCost;
    }

    public Integer getUsedClassHour() {
        return usedClassHour;
    }

    public void setUsedClassHour(Integer usedClassHour) {
        this.usedClassHour = usedClassHour;
    }
}
